package com.onepunch.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;




/**
 * 攻略类
 */
@Data
@Schema(name = "Strategy", description = "攻略体类，对应数据库strategy表")
public class Strategy {
    @Schema(description = "用户ID（主键）")
    @NotNull(message = "ID不能为空")
    private Integer  id; // ID
    @Schema(description = "标题")
    @NotNull(message = "标题不能为空")
    private String title; // 标题
    @Schema(description = "up主名称")
    @NotNull(message = "名称不能为空")
    private String upName; // UP主名称
    @Schema(description = "游戏角色名称")
    @NotNull(message = "角色不能为空")
    private String gameCharacter; // 角色名称
    @Schema(description = "视频链接")
    @NotNull(message = "链接不能为空")
    private String videoUrl; // 视频链接
    @Schema(description = "发布时间")
    private LocalDateTime publishTime; // 发布时间
    @Schema(description = "创建时间")
    private LocalDateTime createTime; // 创建时间

}
